
package com.shop.cloud.mall.api.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.mall.api.service.VipCostService;
import com.shop.cloud.mall.common.entity.VipCost;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 会员类型费用
 *
 * @author
 * @date 2024-03-19 15:24:21
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/vipcost")
@Tag(description = "vipcost", name = "会员类型费用API")
public class VipCostController {

    private final VipCostService vipCostService;

    /**
     * 会员类型费用分页列表
     * @param page 分页对象
     * @param vipCost 会员类型费用
     * @return
     */
    @Operation(summary = "会员类型费用分页列表")
    @GetMapping("/page")
    public R getPage(Page page, VipCost vipCost) {
        return R.ok(vipCostService.page(page, Wrappers.query(vipCost)));
    }


}
